package com.skynet.app.api.auth.exception;

import com.skynet.app.api.auth.enums.ResultEnum;
import lombok.Getter;

/**
 * @author Skynet
 * @date 2017年11月23日 14:07
 */
@Getter
public class UserAuthException extends RuntimeException {

    private final Integer code;

    public UserAuthException(ResultEnum resultEnum){
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public UserAuthException(Integer code,String message){
        super(message);
        this.code = code;
    }


}
